<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>1101: Tools.CacheHelper类参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 制作者 Doxygen 1.7.2 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>包</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>组合类型列表</span></a></li>
      <li><a href="classes.html"><span>组合类型索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>组合类型成员</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespace_tools.html">Tools</a>      </li>
      <li><a class="el" href="class_tools_1_1_cache_helper.html">CacheHelper</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态公有成员</a> &#124;
<a href="#pub-static-attribs">静态公有属性</a>  </div>
  <div class="headertitle">
<h1>Tools.CacheHelper类参考</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Tools::CacheHelper" -->
<p><a class="el" href="class_tools_1_1_cache_helper.html" title="CacheHelper 数据缓存操作类">CacheHelper</a> 数据缓存操作类  
<a href="#_details">更多...</a></p>
<!-- startSectionHeader --><div class="dynheader">
Tools.CacheHelper合作图：<!-- endSectionHeader --></div>
<!-- startSectionSummary --><!-- endSectionSummary --><!-- startSectionContent --><div class="dyncontent">
<div class="center"><img src="class_tools_1_1_cache_helper__coll__graph.png" border="0" usemap="#_tools_8_cache_helper_coll__map" alt="Collaboration graph"/></div>
<map name="_tools_8_cache_helper_coll__map" id="_tools_8_cache_helper_coll__map">
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center><!-- endSectionContent --></div>

<p><a href="class_tools_1_1_cache_helper-members.html">所有成员的列表。</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
静态公有成员</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_cache_helper.html#ad2e96f137ccce308366d3205e9f0c8e3">CacheInsertFromMinutes</a> (string key, object value, int minute)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">以key键值，把value赋给Cache[key].固定过期时间。当缓存建立后过minute分钟就过期.  <a href="#ad2e96f137ccce308366d3205e9f0c8e3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_cache_helper.html#a9394867547fb6596fd4a03736019f54f">CacheInsertAddMinutes</a> (string key, object value, int minute)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">以key键值，把value赋给Cache[key].可调过期时间. 缓存被调用minute分钟后，再过期  <a href="#a9394867547fb6596fd4a03736019f54f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_cache_helper.html#a6593333a47bffb2f769b2a0638fb0395">CacheInsert</a> (string key, object value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">以key键值，把value赋给Cache[key].如果不主动清空，会一直保存在内存中.  <a href="#a6593333a47bffb2f769b2a0638fb0395"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_cache_helper.html#aabd23bfd39ba7fbd8dbc6f3c48abaf8b">CacheNull</a> (string key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">清除Cache[key]的值  <a href="#aabd23bfd39ba7fbd8dbc6f3c48abaf8b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_cache_helper.html#aded61ea7628ec49b56ab0036c9e469d8">CacheValue</a> (string key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">根据key值，返回Cache[key]的值  <a href="#aded61ea7628ec49b56ab0036c9e469d8"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
静态公有属性</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6580c46f61f9cc6672da8e125660036b"></a><!-- doxytag: member="Tools::CacheHelper::cache" ref="a6580c46f61f9cc6672da8e125660036b" args="" -->
static Cache&#160;</td><td class="memItemRight" valign="bottom"><b>cache</b> = new Cache()</td></tr>
</table>
<hr/><a name="_details"></a><h2>详细描述</h2>
<p><a class="el" href="class_tools_1_1_cache_helper.html" title="CacheHelper 数据缓存操作类">CacheHelper</a> 数据缓存操作类 </p>
<hr/><h2>成员函数文档</h2>
<a class="anchor" id="a6593333a47bffb2f769b2a0638fb0395"></a><!-- doxytag: member="Tools::CacheHelper::CacheInsert" ref="a6593333a47bffb2f769b2a0638fb0395" args="(string key, object value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.CacheHelper.CacheInsert </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"> <em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>以key键值，把value赋给Cache[key].如果不主动清空，会一直保存在内存中. </p>
<p>param name="key"&gt;Cache键值</p>
<p>param name="value"&gt;给Cache[key]赋的值</p>

</div>
</div>
<a class="anchor" id="a9394867547fb6596fd4a03736019f54f"></a><!-- doxytag: member="Tools::CacheHelper::CacheInsertAddMinutes" ref="a9394867547fb6596fd4a03736019f54f" args="(string key, object value, int minute)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.CacheHelper.CacheInsertAddMinutes </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"> <em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>minute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>以key键值，把value赋给Cache[key].可调过期时间. 缓存被调用minute分钟后，再过期 </p>
<p>param name="key"&gt;Cache键值</p>
<p>param name="value"&gt;给Cache[key]赋的值</p>
<p>param name="minute"&gt;可调过期分钟</p>

</div>
</div>
<a class="anchor" id="ad2e96f137ccce308366d3205e9f0c8e3"></a><!-- doxytag: member="Tools::CacheHelper::CacheInsertFromMinutes" ref="ad2e96f137ccce308366d3205e9f0c8e3" args="(string key, object value, int minute)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.CacheHelper.CacheInsertFromMinutes </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"> <em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>minute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>以key键值，把value赋给Cache[key].固定过期时间。当缓存建立后过minute分钟就过期. </p>
<p>param name="key"&gt;Cache键值</p>
<p>param name="value"&gt;给Cache[key]赋的值</p>
<p>param name="minute"&gt;固定过期分钟</p>

</div>
</div>
<a class="anchor" id="aabd23bfd39ba7fbd8dbc6f3c48abaf8b"></a><!-- doxytag: member="Tools::CacheHelper::CacheNull" ref="aabd23bfd39ba7fbd8dbc6f3c48abaf8b" args="(string key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.CacheHelper.CacheNull </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>key</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>清除Cache[key]的值 </p>
<p>param name="key"&gt;</p>

</div>
</div>
<a class="anchor" id="aded61ea7628ec49b56ab0036c9e469d8"></a><!-- doxytag: member="Tools::CacheHelper::CacheValue" ref="aded61ea7628ec49b56ab0036c9e469d8" args="(string key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static object Tools.CacheHelper.CacheValue </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>key</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>根据key值，返回Cache[key]的值 </p>
<p>param name="key"&gt;</p>

</div>
</div>
<hr/>该类的文档由以下文件生成：<ul>
<li>D:/Project/1101/Tools/CacheHelper.cs</li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>名字空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>属性</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated at Sun Apr 10 2011 19:47:50 for 1101 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
